package com.yipingnai.blog.mapper;

import com.yipingnai.blog.model.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: jiangym
 * @Date: 2020/4/11 13:02
 */
public interface CategoryMapper {
    List<Category> getAllCategories();

    Integer getMaxPriority();

    Integer addCategory(Category category);

    int deleteCategory(Integer id);

    List<Category> getIsUseCategories();

    Integer updateCategoryIsUse(@Param("id") Integer id,@Param("isUse") Integer isUse);
}
